﻿<Window x:Class="Provausio.DependencyFinder.App.Wpf.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="CSPROJ Dependency Finder" Height="361" Width="525" ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen"
        Icon="jigsawicon.ico">
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="10"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <TextBlock Text="Directory To Check" HorizontalAlignment="Left" VerticalAlignment="Bottom" Grid.Row="0" Grid.Column="0"/>
        <TextBox x:Name="TxtCheckDirectory" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="4" Text="{Binding CheckDirectoryPath}" VerticalContentAlignment="Center"/>
        <Button x:Name="BtnBrowseDirectory" Grid.Column="4" Grid.Row="1" Content="Browse..." Click="BtnBrowseDirectory_Click"/>
        
        <TextBlock Text="Dependency" HorizontalAlignment="Left" VerticalAlignment="Bottom" Grid.Row="2" Grid.Column="0" />
        <TextBox x:Name="TxtInputFilePath" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="4" Text="{Binding DependentFilePath}" VerticalContentAlignment="Center" />
        <Button x:Name="BtnBrowseInputFilePath" Grid.Column="4" Grid.Row="3" Content="Browse..." Click="BtnBrowseInputFilePath_Click"/>
        
        <ScrollViewer Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="5" Grid.RowSpan="4">
            <TextBox x:Name="TxtDependenciesFound" TextWrapping="WrapWithOverflow" AcceptsReturn="True" AcceptsTab="True" ScrollViewer.CanContentScroll="True" Text="{Binding SearchResults}" />
        </ScrollViewer>
        
        <Button Content="Find Dependencies" Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="5" Click="Button_Click" Margin="0 10 0 0"/>
    </Grid>
</Window>
